<?php

namespace common\models;

use Yii;

/**
 * This is the model class for table "iliketry.smash_eggs_game".
 *
 * @property integer $id
 * @property string $title
 * @property string $start_time
 * @property string $end_time
 * @property integer $prize
 * @property string $less_than_gz
 * @property string $more_than_gz
 * @property string $addtime
 * @property string $updatetime
 */
class EggsGame extends \yii\db\ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return 'iliketry.smash_eggs_game';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['start_time', 'end_time', 'addtime', 'updatetime'], 'safe'],
            [['prize'], 'integer'],
            [['less_than_gz', 'more_than_gz'], 'required'],
            [['less_than_gz', 'more_than_gz'], 'string'],
            [['title'], 'string', 'max' => 48],
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'id' => 'ID',
            'title' => '标题',
            'start_time' => '开始时间',
            'end_time' => '结束时间',
            'prize' => '低保喜元',
            'less_than_gz' => '小于低保喜元规则',
            'more_than_gz' => '大于低保喜元规则',
            'addtime' => '添加时间',
            'updatetime' => '更新时间',
        ];
    }
}
